<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>定时任务日志</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>

	<form:form id="inputForm" modelAttribute="scheduleJobLog" action="${ctx}/job/scheduleJobLog/save" method="post" class="form-horizontal btnbottom">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>	
		<div class="panel formbody">
			<div class="panel-body">
				<div class="line">
					<span>基本信息</span>
					<hr style="border: 1px dotted #ddd; width:100%;margin:0px;"/>
				</div>
				<ul class="form-box clearfix">
							<li>
								<p>任务id：</p>
								<div class="form-right">
											<form:input path="jobId" htmlEscape="false" maxlength="38" class=" "/>
								</div>
							</li>
							<li>
								<p>spring bean名称：</p>
								<div class="form-right">
											<form:input path="beanName" htmlEscape="false" maxlength="200" class=" "/>
								</div>
							</li>
							<li>
								<p>方法名：</p>
								<div class="form-right">
											<form:input path="methodName" htmlEscape="false" maxlength="100" class=" "/>
								</div>
							</li>
							<li>
								<p>参数：</p>
								<div class="form-right">
											<form:input path="params" htmlEscape="false" maxlength="2000" class=" "/>
								</div>
							</li>
							<li>
								<p>任务状态    0：成功    1：失败：</p>
								<div class="form-right">
											<form:input path="status" htmlEscape="false" maxlength="4" class="  digits"/>
								</div>
							</li>
							<li>
								<p>失败信息：</p>
								<div class="form-right">
											<form:input path="error" htmlEscape="false" maxlength="2000" class=" "/>
								</div>
							</li>
							<li>
								<p>耗时(单位：毫秒)：</p>
								<div class="form-right">
											<form:input path="times" htmlEscape="false" maxlength="11" class="  digits"/>
								</div>
							</li>
							<li>
								<p>创建时间：</p>
								<div class="form-right">
											<input name="createTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate "
												value="<fmt:formatDate value="${scheduleJobLog.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
												onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
								</div>
							</li>
							<li>
								<p>备注信息：</p>
								<div class="form-right">
											<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class=""/>
								</div>
							</li>
				</ul>		
			</div>
		</div>
		<div class="panel panel-default bottom">
		<div class="panel-heading center">
			<button id="btnSubmit" type="submit" class="btn-custom">保存</button>
			<button type="button" class="btn-custom" onclick="top.$.jBox.close();">关闭</button>
		</div>
	</div>
	</form:form>

</body>
</html>